package lu.med.praxiswahl.wahlumed.model.beans;

import java.io.Serializable;
import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

@Table(name = "PRAXIS_HOLLIDAYS")
@Entity
public class HollidaysTBL implements Serializable
{

    private static final long serialVersionUID = 1L;

    @Column(name = "ID")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Temporal(javax.persistence.TemporalType.DATE)
    private Calendar datum;

    private boolean urlaub;
    private boolean feiertag;

    public HollidaysTBL()
    {

    }

    public Long getId()
    {
	return id;
    }

    public void setId(Long id)
    {
	this.id = id;
    }

    public Calendar getDatum()
    {
	return datum;
    }

    public void setDatum(Calendar datum)
    {
	this.datum = datum;
    }

    public boolean isUrlaub()
    {
	return urlaub;
    }

    public void setUrlaub(boolean urlaub)
    {
	this.urlaub = urlaub;
    }

    public boolean isFeiertag()
    {
	return feiertag;
    }

    public void setFeiertag(boolean feiertag)
    {
	this.feiertag = feiertag;
    }

}
